<?php 
$username = $this->uri->segment(3);

if(!$this->uri->segment(4)) $tahun = date('Y');
else $tahun = $this->uri->segment(4);

if(!$this->uri->segment(5)) $bulan = date('m');
else $bulan = $this->uri->segment(5);

$link = base_url()."customer/checklist/$username/$tahun/$bulan/";
?>

<script type='text/javascript'>
$('.calendar .day').click(function(){
	day_num = $(this).find('.day_num').html();
	if(day_num.length == 1){
		day_num = '0'+day_num;
	}
	window.location.href = '<?php echo $link ?>'+day_num;
});
</script>
